package com.mmall.service;

import com.github.pagehelper.PageInfo;
import com.mmall.common.ServerResponse;
import com.mmall.pojo.Product;
import com.mmall.vo.ProductDetailVo;

public interface IProductService {

    ServerResponse saveOrUpdateProduct(Product product);

    ServerResponse setSaleStatus(Integer productId, Integer status);

    ServerResponse<ProductDetailVo> managerProductDetail(Integer productId);

    ServerResponse getProductByPage(Integer pageNum, Integer pageSize);

    ServerResponse<PageInfo> SearchProducts(String productName, Integer productId, Integer pageNum, Integer
            pageSize);

    ServerResponse<ProductDetailVo> getProductDetail(Integer productId);

    ServerResponse<PageInfo> getProductByKeywordCategoryId(String keyword, Integer categoryId,
                                                           Integer pageNum, Integer pageSize, String orderBy);
}
